home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3281 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  705 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: queenhead@aol.com (Queenhead)
  3. Newsgroups: comp.lang.c
  4. Subject: Calculation in C: HELP
  5. Date: 27 Jan 1996 09:41:49 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4eddjd$mde@newsbf02.news.aol.com>
  9. Reply-To: queenhead@aol.com (Queenhead)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Hi. I am trying to use the following calculation in a program and it is
  13. not coming out right:
  14.  
  15. nextyr  = rate  *  currentyr  *  ( 1 - (currentyr/1000000)
  16.  
  17. Is something wrong with that (in terms of C syntax)?  I should be getting
  18. 234,000   if rate is 2.6 and currentyr is 100,000. My program is not
  19. giving me that.
  20.  
  21. Thanks.
  22.